package com.wj.gulimall.product.feign;

import com.wj.common.to.SkuReductionTo;
import com.wj.common.to.SpuBoundsTo;
import com.wj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSkuBounds(@RequestBody SpuBoundsTo to);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkeReduction(@RequestBody SkuReductionTo skuReductionTo);
}
